import Vue from 'vue'
import Router from 'vue-router'
import View from '../components/view-page/view.vue'

Vue.use(Router)

 const router=new Router({
 mode:'history',
  routes: [{
    // 路由重定向，当用户输入/之后自动调转到登入页面
      path: '/',
      redirect: '/view'
    },
    { path: '/view', component: View },
  ]
 })
export default router